package phaseII;

public class Nonterminal extends Symbol 
{
	//name should be as "<exp>" rather than "exp"
	public Nonterminal(String name) 
	{
		super(name);
	}
	
	public String getType()
	{
		return "Nonterminal";
	}
	@Override
	public boolean equals (Object n)
	{
		if ((((Nonterminal)n).toString()).equals(this.toString()))
			return true;
		else
			return false;
	}
	@Override
	public int hashCode()
	{
		return this.toString().hashCode();
	}

}
